import tkinter as tk
from ui_manager import UIManager

if __name__ == "__main__":
    try:
        # 创建主窗口
        root = tk.Tk()
        # 初始化UI管理器
        app = UIManager(root)
        # 启动主循环
        root.mainloop()
    except Exception as e:
        print(f"程序运行出错: {str(e)}")
        input("按回车键退出...")